package os;

import java.util.ArrayList;
import javafx.beans.property.SimpleStringProperty;

/**
 *
 * @author Paulius Dambrauskas
 */
public class OSResource {
    private int fatherId;
    private String name;
    public ArrayList<Integer> waitingList = new ArrayList<>();
    public ArrayList<ResourceElement> elementList = new ArrayList<>();
    public void setFatherId(int id){
        fatherId = id;
    }
    public int getFatherId(){
        return fatherId;
    }
    public String getName(){
        return this.name;
    }
    public void setName(String name){
        this.name = name;
    }
    public SimpleStringProperty resNameProperty(){
        return new SimpleStringProperty(name);
    }
    private SimpleStringProperty count = new SimpleStringProperty(elementList.size()+"");
    public void setCountValue(){
        count.set(elementList.size()+"");
    }
 
    public SimpleStringProperty countProperty(){
        return count;
    }
}
